#ifndef _CTHREAD_CPP11_H_
#define _CTHREAD_CPP11_H_

#include <memory>
#include <thread>

class CThreadCpp11
{
public:
    CThreadCpp11();
    ~CThreadCpp11();

public:
    void init();
    void start();
    void stop();

private:
    void threadProc(int arg1, int arg2);
    void netThreadProc();

private:
    bool m_stopped;
    std::shared_ptr<std::thread> m_sp_thread;
    std::shared_ptr<std::thread> m_sp_send_thread;
    std::shared_ptr<std::thread> m_sp_recv_thread;
};

#endif